package com.jy.app.lib.update;

import android.content.Context;
import android.content.Intent;
import android.os.Handler;


public class UpdateManager {
	public static int CHECK_UPDATE_IS_CLICK = 10255;
	public static int CHECK_UPDARE_NEWEST = 10256;
	public static Context context;
	public static String appType;
	public static String clientType;
	public static Handler mHander;

	public static void checkUpdate(Context Context, String AppType, String url, Handler handler) {
		context = Context;
		appType = AppType;
		mHander = handler;
			context.startService(new Intent(Context,UpDateAppService.class).putExtra("url", url));
	}
	public static void checkUpdate(Context Context, String AppType,String ClientType, String url, Handler handler) {
		context = Context;
		appType = AppType;
		mHander = handler;
		clientType = ClientType;
		context.startService(new Intent(Context,UpDateAppService.class).putExtra("url", url));
	}
	public static void setContext(Context Context) {
		context = Context;
	}
	public static void setHandler(Handler hander) {
		mHander = hander;
	}
	
}
